//
// Created by pedro on 18-10-20.
//

#include "utils.h"

int random_int_10() {
    return rand() % 11;
}

int random_int_100() {
    return rand() % 101;
}

int random_int_1000() {
    return rand() % 1001;
}


int random_int_1000000() {
    return rand() % 1000001;
}

void swap(int *data, int i, int j) {
    int tmp = data[i];
    data[i] = data[j];
    data[j] = tmp;
}